package com.foo.example.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 会员福利（当前会员的三个直接子节点均达到相同的星级时，可获得对应星级的福利奖）
 * 格式：(XXX会员 于 X年X月X日  获得 “国际旅游” 福利奖)
 *       (XXX会员 于 X年X月X日  推荐会员数已达到三人 获得公司特别 福利奖)
 * @author Administrator
 *
 */
@Entity
@Table(name = "cq_bu_welfare")
public class Welfare {
		
		@Id
		@Column(name = "id",length = 32)
		@javax.persistence.GeneratedValue(generator = "system-uuid")
		@org.hibernate.annotations.GenericGenerator(name = "system-uuid", strategy = "uuid.hex")
		private String id;
		
		@Column(nullable = false)
		private Long userNo;     //会员编号

		private Date Date;  //产生日期
		
		@Column(length = 255,nullable = true)
		private String welfareInfo;//福利信息       
		
		@Column(length = 10,nullable = true)
		private String welfareStatus;//福利状态   0：未处理  1：已处理

		public String getId() {
			return id;
		}

		public void setId(String id) {
			this.id = id;
		}

		public Long getUserNo() {
			return userNo;
		}

		public void setUserNo(Long userNo) {
			this.userNo = userNo;
		}

		public Date getDate() {
			return Date;
		}

		public void setDate(Date date) {
			Date = date;
		}

		public String getWelfareInfo() {
			return welfareInfo;
		}

		public void setWelfareInfo(String welfareInfo) {
			this.welfareInfo = welfareInfo;
		}

		public String getWelfareStatus() {
			return welfareStatus;
		}

		public void setWelfareStatus(String welfareStatus) {
			this.welfareStatus = welfareStatus;
		}
}
